﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Zebra.WinFramework;
using Zebra.Utility;

namespace Zebra
{
    public partial class MainForm : MainUCForm
    {
        public MainForm()
        {
            InitializeComponent();
        }

        private void kryptonButton1_Click(object sender, EventArgs e)
        {
            UserForm user = new UserForm();
            DisplayPage(user);
        }

        private void DisplayPage(Form sender)
        {
            sender.MdiParent = this;
            sender.TopLevel = false;
            sender.FormBorderStyle = FormBorderStyle.None;
            sender.Dock = DockStyle.Fill;
            sender.Show();
         
        }
    }
}
